package com.game.framework.dao.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
@Document
public class ActivityInfo extends BaseEntity<Long> {

    // 开启活动基本信息
    private ActivityEntity activityEntity;
    // 参与活动的玩家信息<roleId, fishCount 钓到的鱼的数量>
    private Map<Long, Integer> playerMap = new HashMap<>();
    // 开启活动的鱼类信息<fishType, ActivityFishTypeEntity>
    private Map<Integer, ActivityFishTypeEntity> fishTypeMap = new HashMap<>();

    @Override
    public String toString() {
        return "ActivityEntity{" +
                "activityEntity='" + activityEntity.toString() + '\'' +
                //", playerMap='" + playerMap.toString() + '\'' +
                ", fishTypeMap='" + fishTypeMap.toString() + '\'' +
                '}';
    }
}
